package org.java.api;

import org.java.entity.User;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author WHQ
 * @version 1.0
 * @date 2022-3-11 0011 下午 7:26
 */
public interface UserApi {
    /**
     * 对外暴漏的接口，供openfeign调用
     * @param username
     * @param password
     * @return
     */
    @PostMapping("/query")
    public User queryUser(@RequestParam("username")String username,
                                          @RequestParam("password")String password);
}
